// 设计用户新建获奖信息有误时显示的对话框

// 关闭VSCode非必要警告
// ignore_for_file: sized_box_for_whitespace

import 'package:flutter/material.dart';
import 'package:project_award_statistics/utils/mobile_material_design/my_button.dart';

class DialogAddawardinfoErr extends StatelessWidget {
  const DialogAddawardinfoErr({super.key});
  @override
  Widget build(BuildContext context) {
    return AlertDialog(
      content: Container(
        height: 200,
        width: 150,
        child: Padding(
          padding: EdgeInsets.all(0.0),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Text(
                "新建失败",
                style: TextStyle(
                  fontSize: 20,
                ),
              ),
              // const SizedBox(height:22),
              Text(
                "请检查您是否完整输入了您的获奖信息,以及输入是否有误!",
                style: TextStyle(
                  fontSize: 18,
                ),
              ),
              // const SizedBox(height:40),
              Container(
                height: 40,
                width: 150,
                child: MyButton(
                  text: "好的,我马上去检查", 
                  onPressed: ()=>Navigator.of(context).pop(),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
